﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SchoolManagement.Models;
using SchoolManagement.Utilities;
using SchoolManagement.Models.Repository;
using SchoolManagement.Models.RepositoryInterface;

namespace SchoolManagement.Controllers
{
    public class ControllerBase : Controller
    {
        public User _currentUser;
        public User currentUser
        {
            get
            {
                if (_currentUser == null)
                {
                    _currentUser =(User)Session[Constants.User];
                }
                return _currentUser;
            }
        }
    }
}